<? 
	global $FullUrl, $lg; 
?>
<div class="contentContainer page_un">
  <div class="contentPadd un">
    <div class="prods_content prods_table">
    	<?
        	if($products)
			{
		?>
      <ul class="row" id="row-0">
        <?
            for($i = 0; $i < count($products); $i++)
            {
				
				
            $product_name = $products[$i]['name_'.$lg]?$products[$i]['name_'.$lg]:NO_NEWS;                
            if(!empty($products[$i]['name_'.$lg]))
                $product_link = $FullUrl.GetProductLink2($products[$i], $lg); 
            else
                $product_link = "#";
            
            $product_short = $products[$i]['short_'.$lg]  ;  
            $img = $products[$i]['img']  ;  
            $img = $FullUrl.'/'.GetImage($img);
			$product_price = isset($products[$i]['price'])? $products[$i]['price'] :'';
			if($product_price > 0)
				$product_price = number_format($product_price);
        ?>
        <li class="wrapper_prods">
          <div class="pic_padd wrapper_pic_div" ><a class="prods_pic_bg" href="#"><img src="<?=$img?>" alt="$product_name" title=" $product_name " width="230" height="206">
            <div class="wrapper_pic_t">
              <div class="wrapper_pic_r">
                <div class="wrapper_pic_b">
                  <div class="wrapper_pic_l">
                    <div class="wrapper_pic_tl">
                      <div class="wrapper_pic_tr">
                        <div class="wrapper_pic_bl">
                          <div class="wrapper_pic_br" style="width:230px;height:206px;"></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            </a></div>
          <div class="box-padd">
            <div style="min-height: 30px;" class="name name_padd  equal-height">
              <div><span><a href="<?=$product_link?>"><?=$product_name?></a></span></div>
            </div>
            <h2 class="price price_padd un"><b>Price:&nbsp;&nbsp;</b><span class="productSpecialPrice"><?=$product_price?> VNĐ</span></h2>
            <div class="button__padd">
              <div class="bg_button22" onmouseout="this.className='bg_button22';" onmouseover="this.className='bg_button22-act';">
                <div class="button-t">
                  <div class="button-tl">
                    <div class="button-tr">
                      <div class="button-bl">
                        <div class="button-br"><a href="<?=$product_link?>" id="tdb1" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e"></span><span class="ui-button-text">Details</span></a> </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="bg_button2" onmouseout="this.className='bg_button2';" onmouseover="this.className='bg_button2-act';">
                <div class="button-t">
                  <div class="button-tl">
                    <div class="button-tr">
                      <div class="button-bl">
                        <div class="button-br"><a href="#" id="tdb1" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-cart"></span><span class="ui-button-text">Add&nbsp;to&nbsp;Cart</span></a> </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </li>
        <li class="prods_vseparator"><img src="<?=$FullUrl?>/<?=CST_IMAGES?>/spacer.gif" alt="" width="1" height="1"></li>
        <?
            }
        ?>
      </ul>
      <?
			}
	  ?>
    </div>
  </div>
        <script type="text/javascript">
        $(document).ready(function(){ 			
			 var row_list = $('.row');
			 row_list.each(function(){
				 new equalHeights($('#' + $(this).attr("id")));
			  });			 			 			  			  			  			  			   
        })      
		</script> 
</div>
